﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="frmPopUpComentario.aspx.vb" Inherits="Dialogos_frmPopUpComentario" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  		<title>Observaciones</title>
           <link href="../Estilos/Estilo.css" rel="stylesheet" type="text/css" />
        <script language="javascript" type="text/javascript" src="../Scripts/JSEventHandlers.js"></script>
        <script language="javascript" type="text/javascript" src="../Scripts/JSUtilitarios.js"></script>
	
        <script language="javascript" type="text/javascript">
			var opener = window.dialogArguments;			
			function RegistrarObservacion(){
				if(document.frmObservaciones.txtObservacion.value == ''){
					alert("Debe ingresar una observación para registrarla.");
					//if (confirm("¿Desea continuar?")) return true;
					if (document.all && window.event) event.returnValue = false;
					return false;
				}
			}
			
			function window_unload(){
				try{
					opener.SetearComentarioDetalle(document.getElementById("hidComentario2").value);
				}
				catch (e){
					//alert(e.message);
					//en caso el formulario padre no tenga un metodo de javascript
				}
			}
			
			
		</script>
</head>

<body onunload="window_unload()">
		<form id="frmObservaciones" method="post" runat="server">
			<TABLE class="Secciones" id="Table1" cellSpacing="1" cellPadding="1" width="500" align="center"
				border="0">
				<TR>
					<TD class="CeldasEspeciales" style="HEIGHT: 17px"><asp:label id="Label1" runat="server" CssClass="Titulos">.:: Observaciones .:.</asp:label></TD>
				</TR>
				<TR>
					<TD style="HEIGHT: 57px" align="center"><asp:textbox id="txtObservacion" runat="server" CssClass="CajasTexto" Height="64px" MaxLength="8000"
							TextMode="MultiLine" Width="489px"></asp:textbox></TD>
				</TR>
				<TR>
					<TD align="right"><asp:button id="btnNuevo" runat="server" CssClass="Botones" Text="Nuevo"></asp:button><asp:button id="btnAgregarObservacion" runat="server" CssClass="Botones" Text="Agregar"></asp:button></TD>
				</TR>
				<TR>
					<TD align="center"><asp:datagrid id="dgdObservaciones" runat="server" Width="488px" AutoGenerateColumns="False" GridLines="Horizontal"
							CellPadding="3" BackColor="White" BorderWidth="1px" BorderStyle="None" BorderColor="#E7E7FF" Font-Size="11px"
							Font-Names="Verdana">
							<FooterStyle ForeColor="#4A3C8C" BackColor="#B5C7DE"></FooterStyle>
							<SelectedItemStyle Font-Bold="True" ForeColor="#F7F7F7" BackColor="LightSlateGray"></SelectedItemStyle>
							<AlternatingItemStyle BackColor="AliceBlue"></AlternatingItemStyle>
							<ItemStyle ForeColor="#4A3C8C" BackColor="White"></ItemStyle>
							<HeaderStyle Font-Bold="True" ForeColor="#F7F7F7" BackColor="#4A3C8C"></HeaderStyle>
							<Columns>
								<asp:BoundColumn DataField="fecha" HeaderText="Fecha registro">
									<HeaderStyle Width="100px"></HeaderStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="usuario" HeaderText="Usuario">
									<HeaderStyle Width="100px"></HeaderStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="steplabel" HeaderText="Estaci&#243;n">
									<HeaderStyle Width="100px"></HeaderStyle>
								</asp:BoundColumn>
								<asp:ButtonColumn Text="Ver" HeaderText="Obs." CommandName="Select">
									<HeaderStyle Width="25px"></HeaderStyle>
								</asp:ButtonColumn>
							</Columns>
							<PagerStyle HorizontalAlign="Right" ForeColor="#4A3C8C" BackColor="#E7E7FF" Mode="NumericPages"></PagerStyle>
						</asp:datagrid></TD>
				</TR>
				<TR>
					<TD align="center"><asp:label id="lblMensaje" runat="server" CssClass="Mensaje"></asp:label></TD>
				</TR>
				<TR>
					<TD align="left"><INPUT id="hidProceso" type="hidden" name="hidProcessName" runat="server" style="WIDTH: 16px; HEIGHT: 22px"
							size="1"><INPUT id="hidIncidente" type="hidden" name="hidIncident" runat="server" style="WIDTH: 11px; HEIGHT: 22px"
							size="1"><INPUT id="hidUsuario" type="hidden" name="hidUserName" runat="server" style="WIDTH: 11px; HEIGHT: 22px"
							size="1"><INPUT id="hidEstacion" type="hidden" name="hidStepLabel" runat="server" style="WIDTH: 11px; HEIGHT: 22px"
							size="1"><INPUT id="hidRequerimiento" type="hidden" name="hidSolicitud" runat="server" style="WIDTH: 11px; HEIGHT: 22px"
							size="1"><INPUT id="hidTipoComentario" type="hidden" runat="server" style="WIDTH: 11px; HEIGHT: 22px"
							size="1"><INPUT id="hidComentario2" type="hidden" runat="server" style="WIDTH: 16px; HEIGHT: 22px"
							size="1"></TD>
				</TR>
			</TABLE>
		</form>			
	</body>
</html>
